package com.supreme.omsserver.config.props;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.ConfigurationPropertiesScan;
import org.springframework.context.annotation.Configuration;

@Data
@Configuration
@ConfigurationProperties(value = "spring.redis")
public class RedisProps {

    @Data
    @ConfigurationPropertiesScan(value = "spring.redis.lettuce")
    public static class Lettuce {

        @Data
        @ConfigurationPropertiesScan(value = "spring.redis.lettuce.pool")
        public static class Pool {

            private Integer maxActive;

            private Long maxWait;

            private Integer maxIdle;

            private Integer minIdle;
        }

        private Pool pool;
    }

    private String host;

    private Integer port;

    private String password;

    private Long timeout;

    private Lettuce lettuce;
}
